<?php
	echo '<div id="OR_BLKAction">';
	$GetBLK = $GLOBALS['MYT']->db_array("SELECT FraID, FraStatus, blk_ID, blk_Informacion FROM facturas
				LEFT OUTER JOIN hd_bloqueos ON blk_Codigo = FraID AND lbk_Tipo = 2
				WHERE FraID = {$_GET['SearchValue']}");
	form_pr('pp_act','','','post');
	mn_field('hidden','ED','FraID',$GetBLK[1]['FraID'],'','','','');
	mn_field('hidden','ED','FraStatus',$GetBLK[1]['FraStatus'],'','','','');
	mn_field('hidden','ED','blk_Codigo',$GetBLK[1]['FraID'],'','','','');
	if ($GetBLK[1]['FraStatus'] == 14) {
		mn_field('hidden','ED','blk_ID',$GetBLK[1]['blk_ID'],'','','','');
		echo 'Informa��o do bloqueio: '.$GetBLK[1]['blk_Informacion'].'<br>';

		echo 'Motivo para desbloqueio: ';
		mn_field('text','ED','blk_CloseInformation','','200','50','','');
		mn_field('hidden','ED','blk_STATUS','0','','','','');
	mn_field('button','ED','blk_prc','Desbloquear','','','','SUBMIT"
		onclick="document.pp_act.action=\'_response/call.php?get=Operative/remittance&OR_BK\';
		subform(\'pp_act\',\'OR_BLKAction\');');

	} else {
		echo 'Vai bloquear esta remessa';
		echo '<p>Motivo para o bloqueio: ';
		mn_field('text','ED','blk_Information','','200','50','','');
		mn_field('hidden','ED','blk_STATUS','1','','','','');
	mn_field('button','ED','blk_prc','Bloquear','','','','SUBMIT"
		onclick="document.pp_act.action=\'_response/call.php?get=Operative/remittance&OR_BK\';
		subform(\'pp_act\',\'OR_BLKAction\');');
	}
	echo '</div></form>';
 ?>
<script charset="utf-8" type="text/javascript">
Ext.onReady(function(){
	Ext.getCmp('win-statusbar').setStatus({text: 'Pronto'});
});
</script>